/*
 * Copyright (C) 2009 Ionut Dediu <deionut@yahoo.com>
 *
 * Licensed under the GNU General Public License Version 2
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

// SmartCamDocument.h

#ifndef __SMARTCAMDOCUMENT_h__
#define __SMARTCAMDOCUMENT_h__

// INCLUDES
#include <akndoc.h>

// FORWARD DECLARATIONS
class CSmartCamAppUi;
class CEikApplication;


// CLASS DECLARATION

/**
* CSmartCamDocument application class.
* An instance of class CSmartCamDocument is the Document part of the
* AVKON application framework for the SmartCam example application.
*/
class CSmartCamDocument : public CAknDocument
	{
	public: // Constructors and destructor

		/**
		* NewL.
		* Two-phased constructor.
		* Construct a CSmartCamDocument for the AVKON application aApp
		* using two phase construction, and return a pointer
		* to the created object.
		* @param aApp Application creating this document.
		* @return A pointer to the created instance of CSmartCamDocument.
		*/
		static CSmartCamDocument* NewL( CEikApplication& aApp );

		/**
		* NewLC.
		* Two-phased constructor.
		* Construct a CSmartCamDocument for the AVKON application aApp
		* using two phase construction, and return a pointer
		* to the created object.
		* @param aApp Application creating this document.
		* @return A pointer to the created instance of CSmartCamDocument.
		*/
		static CSmartCamDocument* NewLC( CEikApplication& aApp );

		/**
		* ~CSmartCamDocument
		* Virtual Destructor.
		*/
		virtual ~CSmartCamDocument();

	public: // Functions from base classes

		/**
		* CreateAppUiL
		* From CEikDocument, CreateAppUiL.
		* Create a CSmartCamAppUi object and return a pointer to it.
		* The object returned is owned by the Uikon framework.
		* @return Pointer to created instance of AppUi.
		*/
		CEikAppUi* CreateAppUiL();

	private: // Constructors

		/**
		* ConstructL
		* 2nd phase constructor.
		*/
		void ConstructL();

		/**
		* CSmartCamDocument.
		* C++ default constructor.
		* @param aApp Application creating this document.
		*/
		CSmartCamDocument( CEikApplication& aApp );

	};

#endif // __SMARTCAMDOCUMENT_h__

